/* File:   functions.h
   Author: C Chester
   Date:   12 August 2011
   Descr:  Defines functions for the cap sensing module
*/

#ifndef FUNCTIONS_H
#define FUNCTIONS_H

#include <stdint.h>
#include <htc.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "functions.c"

void initialise(void);

void recalabrate(void);

long thresh_value(long* values);

int ball_detect(long time);

void reset_timers(void);


#endif
